define(function (require, exports, module) {

    var requestByAjax = require("./nuui-requestByAjax");

    var requestByMock = module.exports = function(originalSettings, callback){
        var settings = _.clone(originalSettings);
        settings.type = "GET";
        settings.url = "mock/" + settings.url + ".json";

        return requestByAjax(settings, callback);
    };
});